package com.wo.cloud.elasticsearch.entity;

import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/3/22 0:29
 * Description: 将系统日志信息封装成对象

 */
@Data
public class LogVo {

    // 日志消息
    private String message;

    // 类型
    private String type;

    // 日志时间戳
    private String logTimestamp;

    // 日志级别
    private String loglevel;

    // 标签
    private List<String> tags;

    // 下标
    private String offset;

    //查询时间戳
    private Date timestamp;

    @Override
    public String toString() {
        return "LogVo{" +
                "message='" + message + '\'' +
                ", type='" + type + '\'' +
                ", logTimestamp='" + logTimestamp + '\'' +
                ", loglevel='" + loglevel + '\'' +
                ", offset='" + offset + '\'' +
                ", timestamp='" + timestamp + '\'' +
                ", tags=" + tags +
                '}';
    }
}
